#!/usr/bin/python
# -*-coding: UTF-8 -*-
"""
# Time: 2025/4/20 15:06
# @Project_name: PROJECT_NAME
"""


class Dog():
    """一次模拟狗的简单尝试"""
    print("这是init方法，实例化就会执行")

    def __init__(self, name, age):
        self.name = name
        self.age = age

    def sit(self):
        print(f"{self.name}正蹲下")

    def desc(self, descs):
        print(f"{self.name}正蹲下,今年{self.age}岁了,颜色是：{descs}")


if __name__ == '__main__':
    dog = Dog("旺财", 2)
    dog.sit()
    dog.desc("黑色")